<%= @settings.site_name %>

Hi <%= @payment.fullname.split(' ')[0] %>,

This is an email receipt for your <%= short_price(@payment.amount.to_f/100.0 + @payment.user_fee_amount.to_f/100.0, '$', 2) %> contribution to <%= @campaign.name %> (<%= url_for campaign_home_url(@campaign) %>). If you have any questions about this campaign, please contact the campaign's organizer at <%= @settings.reply_to_email %><% if @settings.phone_number.present? %> or <%= @settings.phone_number %><% end %>.

<% if !@campaign.production_flag %>
This campaign is in sandbox mode, your card will not actually be charged.
<% end%>

Payment Details:

Name: <%= @payment.fullname %>
Date: <%= @payment.created_at.strftime("%m/%d/%Y") %>
Amount: <%= short_price(@payment.amount.to_f/100.0 + @payment.user_fee_amount.to_f/100.0, '$', 2) %>
Card: <%= @payment.card_type %> ************<%= @payment.card_last_four %>

<% if @campaign.rewards? %>
  <%= @campaign.reward_reference.titleize %> Selected: <%= @payment.reward ? @payment.reward.title : 'None' %>
<% end %>
<% if @campaign.goal_type == 'orders' %>
  Quantity: <%= @payment.quantity %>
<% end %>
<% if @campaign.collect_shipping_flag %>
  Shipping Address:

  <%= @payment.address_one %>
  <% if !@payment.address_two.blank? %><%= @payment.address_two %><% end %>
  <%= @payment.city %>, <%= @payment.state %> <%= @payment.postal_code %>
  <%= @payment.country %>

<% end %>
<% if @campaign.collect_additional_info %>
  Additional Information:
  <%= @payment.additional_info %>

<% end %>

Payment ID: <%= @payment.ct_payment_id %>
Charge will appear as: <%= 'BAL*' + @settings.billing_statement_text %>

Please keep this email as your receipt.
<% if !@campaign.is_tilted %>
Your credit card will only be charged if this campaign reaches its goal. In the meantime, you might also see an authorization on your card to ensure sufficient funds are available.
<% end %>

Thanks for your support!

Powered by Tilt Open // Start your own crowdfunding campaign by visiting: http://open.tilt.com
